import request from '@/utils/request'

// 查询文章标签列表
export function listArticleTag(query) {
    return request({
        url: '/business/ArticleTag/list',
        method: 'get',
        params: query
    })
}

// 查询文章标签详细
export function getArticleTag(articleTagId) {
    return request({
        url: '/business/ArticleTag/' + articleTagId,
        method: 'get'
    })
}

// 新增文章标签
export function addArticleTag(data) {
    return request({
        url: '/business/ArticleTag',
        method: 'post',
        data: data
    })
}

// 修改文章标签
export function updateArticleTag(data) {
    return request({
        url: '/business/ArticleTag',
        method: 'put',
        data: data
    })
}

// 删除文章标签
export function delArticleTag(articleTagId) {
    return request({
        url: '/business/ArticleTag/' + articleTagId,
        method: 'delete'
    })
}
